package com.lyz.user.designPattern.filterPattern;

public class WordCountArticleFilter extends BaseArticleFilter {
    @Override
    public boolean doFilter(ArticleContext articleContext) {
        Article article = articleContext.getArticle();
        Long wordCount = article.getWordCount();
        if (wordCount > 10) {
            return true;
        }
        return false;
    }
}
